package com.manman.eduService.client;

import com.manman.commonUtils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("service-vod")
@Component
public interface VodClient {

    // 定义调用方法的路径
    // 根据视频 id 删除阿里云视频
    @DeleteMapping("/eduVod/video/removeAlyVideo/{id}")
    public Result removeAlyVideo(@PathVariable("id") String id);

    @DeleteMapping("/eduVod/video/deleteBatch")
    public Result deleteBatch(@RequestParam("videoIdList") List<String> videoIdList);
}
